package com.hp.his.core.util;

import java.util.Comparator;
import com.hp.his.charts.xml.Set;

public class ComparatorSet implements Comparator<Set> {

	public int compare(Set arg0, Set arg1) {
		Set user0 = (Set) arg0;
		Set user1 = (Set) arg1;
		int flag = user0.getLabel().compareTo(user1.getLabel());
		if (flag == 0) {
			return user0.getValue().compareTo(user1.getValue());
		} else {
			return flag;
		}
	}
}
